package com.system.demo.commonService;

import com.system.demo.tool.ResponseResult;

import javax.mail.MessagingException;
import java.util.List;
import java.util.Map;

public interface MailService {
    /**
     * 发送邮件的公共方法
     *
     * @param emailReceiver 收件人邮箱
     * @param subject 邮件主题
     * @param templatePath 模板路径
     * @param variables 模板变量
     * @return 响应结果
     * @throws MessagingException 异常处理
     */
    Boolean sendMail(String emailReceiver, String subject, String templatePath, Map<String, Object> variables) throws MessagingException;


    Boolean sendBindingMail(String emailReceiver, String subject, String token);
}
